<?php
 $name=$_POST['name']; 
 $email=$_POST['email']; 
 $location=$_POST['location']; 
 mysql_connect("ramen.cs.man.ac.uk","yangs9","Shuoqing0520") or die(mysql_error()); 
 mysql_select_db("test") or die(mysql_error()); 
 mysql_query("INSERT INTO `data` VALUES ('$name', '$email', '$location')"); 
 Print "Your information has been successfully added to the database."; 
 ?> 
